package cn.tedu.backend.portal.mapper;

import cn.tedu.backend.portal.model.Volunteer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface VolunteerMapper extends BaseMapper<Volunteer> {
    //查询所有
    @Select("select * from volunter")
    List<Volunteer> selectAll();

    //删除信息
    @Delete("delete from volunter where id=#{id}")
    int deleteById(int id);

}
